package com.hotel.homehotel.before.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hotel.homehotel.before.entiy.UserHobby;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Set;

@Mapper
public interface UserHobbyMapper extends BaseMapper<UserHobby> {
   @Select(" select   rid  from user_hobby  order by   num ")
    public Set<String> getRid();

    @Select(" select   rid  from user_hobby where uid=#{uid} order by   num ")
    public List<String> getRidByUid(String uid);
}

